package com.ruoyi.api.repository;

import com.ruoyi.api.domain.GuidEntity;
import com.ruoyi.api.domain.UserEntity;
import com.ruoyi.api.domain.UserGuidEntity;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserGuidRepository extends MongoRepository<UserGuidEntity,String> {


    @Query("{ userId:?0 , type: ?1}")
    List<UserGuidEntity> findByEmailType(String userId, String type);
}
